//using PK.InAppPurchase;
//using PKGames.Analytics;

//namespace PKGames.Store.Analytics
//{
//	public class IapPurchaseEvent : AnalyticsEvent
//	{
//		public enum PurchaseFunnel
//		{
//			Creative,
//			Store,
//			Purchased
//		}

//		private const string EventName = "iap_purchase";

//		private const int EventRevision = 0;

//		private const string SkuKey = "sku";

//		private const string ProductNameKey = "product";

//		private const string LevelNameKey = "level";

//		private const string TriggerKey = "trigger";

//		private const string FunnelKey = "funnel";

//		private const string CreativeKey = "creative";

//		protected override int Flags => 0;

//		protected override string Name => "iap_purchase";

//		protected override int Revision => 0;

//		public IapPurchaseEvent(StoreProduct storeProduct, string trigger, PurchaseFunnel purchaseFunnel, string creativeId, string levelName)
//		{
//			base.Parameters["sku"] = new UnityEncodedPrimitiveData(storeProduct.StoreId);
//			base.Parameters["product"] = new UnityEncodedPrimitiveData(storeProduct.Name);
//			base.Parameters["level"] = new UnityEncodedPrimitiveData(levelName);
//			base.Parameters["trigger"] = new UnityEncodedPrimitiveData(trigger);
//			base.Parameters["funnel"] = new UnityEncodedPrimitiveData(purchaseFunnel.ToString().ToLowerInvariant());
//			base.Parameters["creative"] = new UnityEncodedPrimitiveData(creativeId);
//		}

//		public override void Finish()
//		{
//		}
//	}
//}
